package com.eliza.base.compoment


import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class SplashViewModel : ViewModel() {
    var showSplash by mutableStateOf(false)

    // 检查登录
    fun change() {
        viewModelScope.launch {
            delay(100L)
            showSplash = !showSplash
            Log.e("showSplash1", showSplash.toString())
        }

    }

}